package exabase.com;

import java.io.Serializable;

public class Request implements Serializable {
	private static final long serialVersionUID = 1L;
	private static int idCounter = 0;
	private RequestEnum request;
	private int id;

	public Request(RequestEnum request, int id) {
		this.request = request;
		this.id = id;
	}

	public Request(RequestEnum request) {
		this.request = request;
		id = idCounter++;
	}

	public RequestEnum getRequest() {
		return request;
	}

	public int getId() {
		return id;
	}

	public String toString() {
		return request.toString() + ", " + id;
	}
}
